<?php
/* SVN FILE: $Id$ */
/**
 *  The main template file.
 *
 *  This is the most generic template file in a WordPress theme
 *  and one of the two required files for a theme (the other being style.css).
 *  It is used to display a page when nothing more specific matches a query.
 *  E.g., it puts together the home page when no home.php file exists.
 *  Learn more: http://codex.wordpress.org/Template_Hierarchy
 *
 *  @package        CPConstruction
 *  @subpackage     Content
 *  @copyright      CP Construction (Gwent) Ltd <http://www.cpconstruction.co.uk/> 2012
 *  @author         Richard Perry <http: //www.perry-online.me.uk/>
 *  @since          Release 2.0.0
 *  @version        $Rev$
 *  @modifiedby     $LastChangedBy$
 *  @lastmodified   $Date$
 *
 *  @todo           ToDo List
 *                  -
 */

get_header(); // Load the header.php template. ?>

            <div id="container">
                <div id="content">
                <?php 
                if ( function_exists('yoast_breadcrumb') ) {
                    yoast_breadcrumb('<nav class="breadcrumb">','</nav>');
                }
                if ( have_posts() ) {
                    /* Start the Loop */
                    while ( have_posts() ) {
                        the_post();
                        get_template_part('partials/summary', get_post_format()); 
                    }
                } else {
                    get_template_part('partials/nothing', 'default'); 
                } 
                ?>
                </div><!-- #content -->
            </div><!-- #container -->

<?php get_sidebar(); // Load the sidebar.php template. ?>
<?php get_footer(); // Load the footer.php template. ?>